package com.my.user.feign;

import com.my.apis.user.IApUserClient;
import com.my.model.common.dtos.ResponseResult;
import com.my.user.service.ApUserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApUserClient implements IApUserClient {
    @Autowired
    private ApUserFollowService apUserFollowService;

    @Override
    @GetMapping("/api/v1/user/getUserFollow/{userId}/{authorId}")
    public ResponseResult getUserFollow(@PathVariable("userId") Integer userId, @PathVariable("authorId") Integer authorId) {
        return apUserFollowService.getUserFollow(userId,authorId);
    }
}
